package com.boom.search.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.util.Date;

/**
 * created with IntelliJ IDEA.
 *
 * @author: yzw
 * @date: 2021/6/22 下午3:00
 * @description:
 */
@Data
@Document(indexName = "demo")
@AllArgsConstructor
@NoArgsConstructor
public class SearchDemo {
	@Id
	private String id;

	@Field(type = FieldType.Keyword)
	private String name;

	private Date createTime;
}
